package com.example.aijiancece;

import android.content.Intent;
import android.os.Bundle;
import android.widget.TextView;
import android.widget.Toast;

import androidx.appcompat.app.AppCompatActivity;

import com.google.android.material.appbar.MaterialToolbar;
import com.google.android.material.button.MaterialButton;

public class SettingsActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_settings);

        MaterialToolbar toolbar = findViewById(R.id.toolbar);
        TextView tvNotification = findViewById(R.id.tvNotification);
        TextView tvPrivacy = findViewById(R.id.tvPrivacy);
        TextView tvAbout = findViewById(R.id.tvAbout);
        MaterialButton btnClearCache = findViewById(R.id.btnClearCache);

        toolbar.setNavigationOnClickListener(v -> finish());

        tvNotification.setOnClickListener(v -> {
            // TODO: 跳转到消息通知设置页面
            Toast.makeText(this, "消息通知设置", Toast.LENGTH_SHORT).show();
        });

        tvPrivacy.setOnClickListener(v -> {
            // TODO: 跳转到隐私设置页面
            Toast.makeText(this, "隐私设置", Toast.LENGTH_SHORT).show();
        });

        tvAbout.setOnClickListener(v -> {
            // TODO: 跳转到关于我们页面
            Toast.makeText(this, "关于我们", Toast.LENGTH_SHORT).show();
        });

        btnClearCache.setOnClickListener(v -> {
            // TODO: 实现清除缓存功能
            Toast.makeText(this, "缓存已清除", Toast.LENGTH_SHORT).show();
        });
    }
} 